package com.ptj.dao;


import org.apache.ibatis.annotations.Param;

import com.ptj.entity.User;

public interface UserMapper {
	//用户登录验证
	public  User userLogin(@Param("userphone")String userphone,@Param("password")String password);
	//用户注册
	public void userRegister(User user);
	//完善用户信息
	public void addUser(User user);
	//根据手机号查用户
	public User selectUserByPhone(String userphone);
	//根据name查用户
	public User selectUserByName(String username);
	//用户删除
	public int deteleUser(Integer id);
	//用户信息修改
	public void updateUser(User user);
	//根据id查
	public User selectUserByid(Integer id);
}
